package com.acmen.ump.core.exception;

import lombok.Data;

import java.util.Map;

/**
 * @author Acmen
 * @ClassName BadRequestException.java
 * @Description TODO
 * @CreateTime 2019年08月23日 15:33:26
 */
@Data
@SuppressWarnings("serial")
public class BadRequestException extends RuntimeException {
    /**
     * 错误消息中的变量参数
     */
    private Map<String, Object> params;

    public BadRequestException() {
        super();
    }

    public BadRequestException(String code) {
        super(code);
    }

    public BadRequestException(String code, Map<String, Object> params) {
        super(code);
        this.params = params;
    }
}
